package com.zhuifeng.orders.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhuifeng.common.core.annotation.Excel;
import com.zhuifeng.common.core.web.domain.BaseEntity;

/**
 * 订单详情对象 orders_details
 * 
 * @author zhuifeng
 * @date 2022-08-18
 */
public class OrdersDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单详情id */
    private String ordersDetailsId;

    /** 订单id */
    @Excel(name = "订单id")
    private String ordersId;

    /** 商品id */
    @Excel(name = "商品id")
    private String productId;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal ordersDetailsProductPrice;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer ordersDetailsProductNum;

    /** 是否删除（0，已删除，1，未删除） */
    private Integer ordersDetailsDelete;

    /** 乐观锁 */
    private String revision;

    public void setOrdersDetailsId(String ordersDetailsId) 
    {
        this.ordersDetailsId = ordersDetailsId;
    }

    public String getOrdersDetailsId() 
    {
        return ordersDetailsId;
    }
    public void setOrdersId(String ordersId) 
    {
        this.ordersId = ordersId;
    }

    public String getOrdersId() 
    {
        return ordersId;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setOrdersDetailsProductPrice(BigDecimal ordersDetailsProductPrice) 
    {
        this.ordersDetailsProductPrice = ordersDetailsProductPrice;
    }

    public BigDecimal getOrdersDetailsProductPrice() 
    {
        return ordersDetailsProductPrice;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getOrdersDetailsProductNum() {
        return ordersDetailsProductNum;
    }

    public void setOrdersDetailsProductNum(Integer ordersDetailsProductNum) {
        this.ordersDetailsProductNum = ordersDetailsProductNum;
    }

    public Integer getOrdersDetailsDelete() {
        return ordersDetailsDelete;
    }

    public void setOrdersDetailsDelete(Integer ordersDetailsDelete) {
        this.ordersDetailsDelete = ordersDetailsDelete;
    }

    public void setRevision(String revision) {
        this.revision = revision;
    }

    public String getRevision()
    {
        return revision;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ordersDetailsId", getOrdersDetailsId())
            .append("ordersId", getOrdersId())
            .append("productId", getProductId())
            .append("ordersDetailsProductPrice", getOrdersDetailsProductPrice())
            .append("ordersDetailsProductNum", getOrdersDetailsProductNum())
            .append("ordersDetailsDelete", getOrdersDetailsDelete())
            .append("revision", getRevision())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
